package sicnu.cs.aps.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Service;
import sicnu.cs.aps.domain.entity.ActivityRestriction;
import sicnu.cs.aps.domain.form.ActivityRestrictionForm;
import sicnu.cs.aps.mapper.ActivityRestrictionMapper;
import sicnu.cs.aps.service.IActivityRestrictionService;

import java.util.List;

/**
 * @author lucker
 * @date 2022/5/30 18:02
 */
@Slf4j
@Service
@RequiredArgsConstructor
public class ActivityRestrictionServiceImpl extends ServiceImpl<ActivityRestrictionMapper, ActivityRestriction> implements IActivityRestrictionService {
    private final ActivityRestrictionMapper activityRestrictionMapper;



    @Override
    public void addActivityCollegeRestriction(Long activityId, List<Long> collegeIdList) {
        activityRestrictionMapper.insertActivityCollegeRestriction(activityId, collegeIdList);
    }

}
